Sharing data between two EXE files
Sometimes you may need to share packed data files between two different executables.
For example, you have created a game which has main executable and launcher which uses
some of the game graphics.
The following technique allows you to share packed data between two different applications.
Let's assume that you have program1.exe and program2.exe.
- Pack program1.exe and put the data files to share into a separated package, or into
separated data section of the default package.
- Copy the configuration file program1.exe.mbxcfg and save it as
program2.exe.mbxcfg.
- Change source file name and destination file name in the configuration file for the
second application. Make sure that other options were not changed.
- Pack the second application with MoleBox (you will only need to process the default
package which contains executable).